Add CNN-LSTM model for ICU Mortality Prediction#943
Open
nikhita2 wants to merge 9 commits intosunlabuiuc:masterfrom
Open
Add CNN-LSTM model for ICU Mortality Prediction#943nikhita2 wants to merge 9 commits intosunlabuiuc:masterfrom
nikhita2 wants to merge 9 commits intosunlabuiuc:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributor: Nikhita Shanker (nikhita2@illinois.edu)
Contribution Type: Model
Original Paper: "Robust Mortality Prediction in the Intensive Care Unit using Temporal Difference Learning" (Frost et al.)
Link to the Original Paper: https://arxiv.org/pdf/2411.04285
Description: This PR adds the
CNNLSTMPredictormodel to PyHealth, implementing the CNN-LSTM model from the paper. The model processes medical codes through:pyhealth.models.BaseModel, and implements theforward()methodReplication Aspect of the Paper: This PR directly implements the CNN-LSTM model from the replicated paper (Frost et al.).
cnn_lstm.pyuses the original paper's CNN-LSTM designFiles to Review:
pyhealth/models/cnn_lstm.py: Model implementation (CNNLSTMPredictor)pyhealth/models/init.py: AddsCNNLSTMPredictorto importstests/core/test_cnn_lstm.py: Unit tests with synthetic dataexamples/mimic4_icu_mortality_cnn_lstm.py: Ablation/extension script with learning rate, hidden dim, dropout, and batch size sweepsdocs/api/models/pyhealth.models.cnn_lstm.rst: API documentation RST filedocs/api/models.rst: Updated to addcnn_lstm